//
//  GoogleReader.h
//  Feeder
//
//  Created by Diego Acosta on 8/1/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WebServiceInterface.h"
#import "GoogleReaderDelegate.h"
#import "Constants.h"


@interface GoogleReader : WebServiceInterface<ASIHTTPRequestDelegate> {

	NSString * allunreads;
	NSMutableDictionary * tags;
	NSMutableDictionary * folders;
	NSMutableDictionary * feeds;
	NSMutableDictionary * prefs;
	NSMutableDictionary * feeditems;
	
	id<NSObject,GoogleReaderDelegate> delegate;
	
@private
	NSUInteger _maxcount;
	
	NSArray * _actionList;
	NSUInteger _currentAction;
}

@property (readonly,copy) NSString * allunreads;
@property (readonly,copy) NSMutableDictionary * tags;
@property (readonly,copy) NSMutableDictionary * folders;
@property (readonly,copy) NSMutableDictionary * feeds;
@property (readonly,copy) NSMutableDictionary * prefs;
@property (readonly,copy) NSMutableDictionary * feeditems;

@property (readwrite,retain) id<GoogleReaderDelegate> delegate;

- (id)initWithAuth:(NSString *)authcode;

- (RequestAction)requestStatus;

- (void)getAllData;

- (void)refreshTagList;
- (void)refreshSubsList;
- (void)refreshStreamPrefs;
- (void)refreshUnreadCounts;

- (void)getItemsForFeed:(NSString *)feedid;

- (GRTagIdCollection)collectionForTagId:(NSString *)tagId;

@end
